//
//  SXSPopImage.h
//  SXSRAC-iOS
//
//  Created by Angela on 16/9/21.
//  Copyright © 2016年 Angela. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//关闭按钮位置
typedef NS_ENUM(NSInteger,ButtonPositionType) {
    //无
    ButtonPositionTypeNone=0,
    //左上角
    ButtonPositionTypeLeft=1<<0,
    //右上角
    ButtonPositionTypeRigth=2<<0
};
//蒙版背景se
typedef NS_ENUM(NSInteger,ShadeBackGroundType){
    //渐变色
    ShadeBackGroundTypeGradient=0,
    //固定色
    ShadeBackGroundTypeSolid=1<<0
};
typedef void(^completeBlock)(void);
@interface SXSPopImage : NSObject
@property (strong, nonatomic) UIColor *popBackgroudColor;//弹出视图的背景色
@property (assign, nonatomic) BOOL tapOutsideToDismiss;//点击蒙板是否弹出视图消失
@property (assign, nonatomic) ButtonPositionType closeButtonType;//关闭按钮的类型
@property (assign, nonatomic) ShadeBackGroundType shadeBackgroundType;//蒙板的背景色
//创建一个实例
+ (SXSPopImage *)sharedInstance;
//弹出要展示的view
- (void)showWithPresentView:(UIView *)pressentView animated:(BOOL)animated;
@end

